#pragma once
#include "common.h"

//#include <QWidget>
#include "ui_OpenPCMWindow.h"

// include the PCM format struct
//#include "MusicReader.h"

// include Qt Library
//#include <QString>

class OpenPCMWindow : public QWidget
{
	Q_OBJECT

public:
	Ui::OpenPCMWindowClass ui;
	OpenPCMWindow(QWidget *parent = nullptr);
	~OpenPCMWindow();


signals:
	void finished(bool sure = false, QString setting = "");


public slots:
	void confirm();
	void turnoff();


protected:
	void closeEvent(QCloseEvent *event) override;


private:
	// Determine whether to adopt the setting.
	bool sure;
	QString fromSetting;
};

